<?php

use think\facade\Route;

// Route::rule('product/:name', 'app\controller\Product@index');

//Route::rule('product/:name','Product/index');
Route::get('product/article/:id', 'app\controller\Product@article');
Route::any('product/:any$', 'app\controller\Product@index')
    ->pattern(['any' => '.*']);

Route::rule('news/company', 'app\controller\News@index');
Route::rule('news/company/', 'app\controller\News@index');
Route::rule('news/industry', 'app\controller\News@index');
Route::rule('news/industry/', 'app\controller\News@index');

Route::any('showroom/:any$', 'app\controller\showroom@index')
    ->pattern(['any' => '.*']);




Route::get('news/article/:id', 'app\controller\News@article');
